package org.csu.mypetstorems.service;

import org.csu.mypetstorems.entity.Category;
import org.csu.mypetstorems.entity.Item;
import org.csu.mypetstorems.entity.PageBean;
import org.csu.mypetstorems.entity.Product;

import java.util.List;

public interface CatalogService {

    public Boolean addItem(Item item);
    public Boolean updateItem(Item item);
    public Boolean deleteItem(String itemId);
    public Boolean updateItemStatus(String status, String itemId);
    PageBean<Item> getItemListWithCondition(Integer pageNum, Integer pageSize, String productIdForSearch, String state);

    List<String> getItemProductList();

    public Boolean addProduct(Product product);
    public Boolean updateProduct(Product product);
    public Boolean deleteProduct(String productId);
    PageBean<Product> getProductListWithCondition(Integer pageNum, Integer pageSize, String categoryIdForSearch);

    List<String> getproductCategoryList();

    public Boolean addCategory(Category category);
    public Boolean updateCategory(Category category);
    public Boolean deleteCategory(String categoryId);
    public PageBean<Category> getCategoryListWithCondition(Integer pageNum, Integer pageSize, String categoryIdForSearch);
}
